package com.stylefeng.guns.modular.desktop.controller;

import com.stylefeng.guns.modular.desktop.service.IDesktopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by lemon on 2018/4/8 0008.
 */
@Controller
@RequestMapping("/desktop")
public class DesktopController {

    @Autowired
    private IDesktopService desktopService;

    @GetMapping("/realTimeMonitor")
    @ResponseBody
    public Object realTimeMonitor(){
        return desktopService.realTimeMonitor();
    }

    @GetMapping("/alarmList")
    @ResponseBody
    public Object alarmList(){
        return desktopService.alarmList();
    }
}
